#ifndef MATCHPROCPARAMCOLLECTRESPONSE_H
#define MATCHPROCPARAMCOLLECTRESPONSE_H

#include "BaseResponse.h"

struct MatchProcParamCollectResponsePcuInfo
{
    QString locationNo;
    QString pcu;
    QString resultMsg;
};

class MatchProcParamCollectResponse : public BaseResponse
{
public:
    MatchProcParamCollectResponse();
    MatchProcParamCollectResponse(QString factoryNo,QString transId,QDateTime eventTime,QString resultCode,QList<MatchProcParamCollectResponsePcuInfo> pcuInfo);

    bool fromJson(const QByteArray &jsonData) override;
    bool isSuccess() const override{return success;}
    QString getError() const override{return resultMsg;}

public:
    QString factoryNo;
    QString transId;
    QDateTime eventTime;
    QString resultCode;
    QList<MatchProcParamCollectResponsePcuInfo> pcuInfo;

private:
    bool success;
    QString resultMsg;
};

#endif // MATCHPROCPARAMCOLLECTRESPONSE_H
